﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AspNetTreeView.Models;

namespace AspNetTreeView
{
    public partial class TreeViewXmlSource : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.ViewState["alo"] == null)
            {
                this.ViewState["alo"] = 0;
            }

            int num = (int)(this.ViewState["alo"]);
            this.ViewState["alo"] = num + 1;

            this.TextBoxNumber.Text = num.ToString();
        }
    }
}